import Vue from "vue"
import VueRouter from "vue-router"
import Home from "../views/Home.vue"
import Items from "../views/Items.vue"
import Order from "../views/Order.vue"
import User from "../views/User.vue"
import Link from "../views/Link.vue"
import Heima from "../views/children/shopping.vue"
import Top from "../views/children/sport.vue"
Vue.use(VueRouter)
const routes = [{
        path: '/',
        redirect: "/home"
    }, {
        path: '/home',
        component: Home
    },
    {
        path: '/items',
        component: Items
    },

    {
        path: '/order',
        component: Order
    },
    {
        path: '/user',
        component: User
    },
    {
        path: '/link',
        component: Link,
        children: [{
                path: 'heima',
                component: Heima
            },
            {
                path: 'top',
                component: Top
            }
        ]
    },

]
const router = new VueRouter({ routes }

)
export default router